package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/11.删除订单
 */
@HttpInlet(Net.GET_ORDER_DELETE)
public class GetOrderDelete extends ZJDBAsyGet<Object> {
    public String orderid, userid;

    public GetOrderDelete(String userid, String orderid, AsyCallBack listener) {
        super(listener);
        this.orderid = orderid;
        this.userid = userid;
    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            TOAST = "订单删除成功";
            return "1";
        } else {
            TOAST = "订单删除失败";
        }
        return null;
    }
}
